<script language="JavaScript" type="text/JavaScript">
//Function to limit text entered into textarea
function limitText(textArea, length) {
    if (textArea.value.length > length) {
        textArea.value = textArea.value.substr(0,length);
    }
}
</script>